//使用枚举时分的写法
class Solution {
public:
    int calc_point(int num){
        int cc = 0;
        while(num){
            if(num ^ 1  == 1){
                cc ++ ;
            }
            num = num >> 1;
        }
        return cc;
    }
    vector<string> readBinaryWatch(int turnedOn) {
        vector<string> ans;
        string temp;
        // in order , is unique
        for (int i = 0; i <=11; i++) // hour
        {
            for(int j  = 0 ; i <= 59 ; j++){
                if(calc_point(i) + calc_point(j) == turnedOn){
                    char tmp[10];   
                    sprintf(tmp,"%d:%02d",i,j);
                    ans.push_back(string(tmp));
                }
            }
        }
        
    }
};